Optimal. Leaf size=91 \[ -\frac{2 \sqrt [4]{-\frac{1}{3}} \tanh ^{-1}\left ((-1)^{3/4} \sqrt [4]{3} \tanh \left (\frac{x}{2}\right )\right )}{3 \left (1+(-1)^{2/3}\right )}-\frac{2 \sqrt [4]{-\frac{1}{3}} \tan ^{-1}\left ((-1)^{3/4} \sqrt [4]{3} \tanh \left (\frac{x}{2}\right )\right )}{3 \left (1-\sqrt [3]{-1}\right )}+\frac{\sinh (x)}{3 (\cosh (x)+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.130056, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {3213, 2648, 2659, 205, 208} \[ -\frac{2 \sqrt [4]{-\frac{1}{3}} \tanh ^{-1}\left ((-1)^{3/4} \sqrt [4]{3} \tanh \left (\frac{x}{2}\right )\right )}{3 \left (1+(-1)^{2/3}\right )}-\frac{2 \sqrt [4]{-\frac{1}{3}} \tan ^{-1}\left ((-1)^{3/4} \sqrt [4]{3} \tanh \left (\frac{x}{2}\right )\right )}{3 \left (1-\sqrt [3]{-1}\right )}+\frac{\sinh (x)}{3 (\cosh (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3213
Rule 2648
Rule 2659
Rule 205
Rule 208
Rubi steps
\begin{align*} \int \frac{1}{1+\cosh ^3(x)} \, dx &=\int \left (-\frac{1}{3 (-1-\cosh (x))}-\frac{1}{3 \left (-1+\sqrt [3]{-1} \cosh (x)\right )}-\frac{1}{3 \left (-1-(-1)^{2/3} \cosh (x)\right )}\right ) \, dx\\ &=-\left (\frac{1}{3} \int \frac{1}{-1-\cosh (x)} \, dx\right )-\frac{1}{3} \int \frac{1}{-1+\sqrt [3]{-1} \cosh (x)} \, dx-\frac{1}{3} \int \frac{1}{-1-(-1)^{2/3} \cosh (x)} \, dx\\ &=\frac{\sinh (x)}{3 (1+\cosh (x))}-\frac{2}{3} \operatorname{Subst}\left (\int \frac{1}{-1+\sqrt [3]{-1}-\left (-1-\sqrt [3]{-1}\right ) x^2} \, dx,x,\tanh \left (\frac{x}{2}\right )\right )-\frac{2}{3} \operatorname{Subst}\left (\int \frac{1}{-1-(-1)^{2/3}-\left (-1+(-1)^{2/3}\right ) x^2} \, dx,x,\tanh \left (\frac{x}{2}\right )\right )\\ &=-\frac{2 \sqrt [4]{-\frac{1}{3}} \tan ^{-1}\left ((-1)^{3/4} \sqrt [4]{3} \tanh \left (\frac{x}{2}\right )\right )}{3 \left (1-\sqrt [3]{-1}\right )}-\frac{2 \sqrt [4]{-\frac{1}{3}} \tanh ^{-1}\left ((-1)^{3/4} \sqrt [4]{3} \tanh \left (\frac{x}{2}\right )\right )}{3 \left (1+(-1)^{2/3}\right )}+\frac{\sinh (x)}{3 (1+\cosh (x))}\\ \end{align*}
Mathematica [C] time = 0.846407, size = 133, normalized size = 1.46 \[ \frac{1}{18} \left (6 \tanh \left (\frac{x}{2}\right )-\sqrt{6+2 i \sqrt{3}} \left (\sqrt{3}+3 i\right ) \tan ^{-1}\left (\frac{\left (3+i \sqrt{3}\right ) \tanh \left (\frac{x}{2}\right )}{\sqrt{6-2 i \sqrt{3}}}\right )-\sqrt{6-2 i \sqrt{3}} \left (\sqrt{3}-3 i\right ) \tan ^{-1}\left (\frac{\left (3-i \sqrt{3}\right ) \tanh \left (\frac{x}{2}\right )}{\sqrt{6+2 i \sqrt{3}}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.016, size = 216, normalized size = 2.4 \begin{align*}{\frac{1}{3}\tanh \left ({\frac{x}{2}} \right ) }+{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{18}\arctan \left ( \sqrt{2}\sqrt [4]{3}\tanh \left ({\frac{x}{2}} \right ) -1 \right ) }+{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{36}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{3}\tanh \left ({\frac{x}{2}} \right ) }+{\frac{\sqrt{3}}{3}} \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{3}\tanh \left ({\frac{x}{2}} \right ) }+{\frac{\sqrt{3}}{3}} \right ) ^{-1}} \right ) }+{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{18}\arctan \left ( \sqrt{2}\sqrt [4]{3}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) }-{\frac{\sqrt{2}\sqrt [4]{3}}{12}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{3}\tanh \left ({\frac{x}{2}} \right ) }+{\frac{\sqrt{3}}{3}} \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+{\frac{{3}^{{\frac{3}{4}}}\sqrt{2}}{3}\tanh \left ({\frac{x}{2}} \right ) }+{\frac{\sqrt{3}}{3}} \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}\sqrt [4]{3}}{6}\arctan \left ( \sqrt{2}\sqrt [4]{3}\tanh \left ({\frac{x}{2}} \right ) -1 \right ) }-{\frac{\sqrt{2}\sqrt [4]{3}}{6}\arctan \left ( \sqrt{2}\sqrt [4]{3}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{2}{3 \,{\left (e^{x} + 1\right )}} - \int \frac{2 \,{\left (e^{\left (3 \, x\right )} - 4 \, e^{\left (2 \, x\right )} + e^{x}\right )}}{3 \,{\left (e^{\left (4 \, x\right )} - 2 \, e^{\left (3 \, x\right )} + 6 \, e^{\left (2 \, x\right )} - 2 \, e^{x} + 1\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.49769, size = 1922, normalized size = 21.12 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 4.35318, size = 330, normalized size = 3.63 \begin{align*} - \frac{2 \sqrt{2} \cdot 3^{\frac{3}{4}} \log{\left (36 \tanh ^{2}{\left (\frac{x}{2} \right )} - 12 \sqrt{2} \cdot 3^{\frac{3}{4}} \tanh{\left (\frac{x}{2} \right )} + 12 \sqrt{3} \right )}}{18 + 18 \sqrt{3}} - \frac{3 \sqrt{2} \sqrt [4]{3} \log{\left (36 \tanh ^{2}{\left (\frac{x}{2} \right )} - 12 \sqrt{2} \cdot 3^{\frac{3}{4}} \tanh{\left (\frac{x}{2} \right )} + 12 \sqrt{3} \right )}}{18 + 18 \sqrt{3}} + \frac{3 \sqrt{2} \sqrt [4]{3} \log{\left (36 \tanh ^{2}{\left (\frac{x}{2} \right )} + 12 \sqrt{2} \cdot 3^{\frac{3}{4}} \tanh{\left (\frac{x}{2} \right )} + 12 \sqrt{3} \right )}}{18 + 18 \sqrt{3}} + \frac{2 \sqrt{2} \cdot 3^{\frac{3}{4}} \log{\left (36 \tanh ^{2}{\left (\frac{x}{2} \right )} + 12 \sqrt{2} \cdot 3^{\frac{3}{4}} \tanh{\left (\frac{x}{2} \right )} + 12 \sqrt{3} \right )}}{18 + 18 \sqrt{3}} + \frac{6 \tanh{\left (\frac{x}{2} \right )}}{18 + 18 \sqrt{3}} + \frac{6 \sqrt{3} \tanh{\left (\frac{x}{2} \right )}}{18 + 18 \sqrt{3}} - \frac{2 \sqrt{2} \cdot 3^{\frac{3}{4}} \operatorname{atan}{\left (\sqrt{2} \sqrt [4]{3} \tanh{\left (\frac{x}{2} \right )} - 1 \right )}}{18 + 18 \sqrt{3}} - \frac{2 \sqrt{2} \cdot 3^{\frac{3}{4}} \operatorname{atan}{\left (\sqrt{2} \sqrt [4]{3} \tanh{\left (\frac{x}{2} \right )} + 1 \right )}}{18 + 18 \sqrt{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]